package com.example.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author: 康伟奇
 * @date: 2023 - 11 - 13 11:19
 **/
@Data
public class Goods implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Integer id;
    //名称
    private String name;
    //价格
    private BigDecimal price;
    //打折之后的价格
    private BigDecimal actualPrice;
    //图片
    private String img;
    //描述
    private String descr;
    //原材料
    private String origin;
    //口味
    private String taste;
    //规格
    private String specs;
    //上架日期
    private String date;
    //上架状态
    private String status;
    //折扣
    private Double discount;
    //商家ID
    private Integer businessId;
    //分类ID
    private Integer categoryId;
    //商家名称（表中不存在）
    private String businessName;
    //分类名称
    private String categoryName;
    //商品销售数量（表中不存在）
    private Integer saleCount;
}
